<?php
/**
 * callback for accounting/sales
 */
function sales_home(){
	$s = "<h2>Sales home</h2>";
	return $s;
}

/**
 * callback for accounting/sales/orders
 */
function sales_orders(){
	$s = "<h2>Sales orders</h2>";
	return $s;
}

/**
 * callback for accounting/sales/orders/new
 */
function sales_orders_new(){
	$s = module_invoke("sales","block","view",BLOCK_SALES_ORDER);
	return $s["content"];
}

/**
 * callback for accounting/sales/cash
 */
function sales_cash(){
	$s = "<h2>Cash sales</h2>";
	return $s;
}

/**
 * callback for accounting/sales/cash/new
 */
function sales_cash_new(){
	$s = module_invoke("sales","block","view",BLOCK_SALES_CASH);
	return $s["content"];
}

/**
 * callback for accounting/sales/account
 */
function sales_acct(){
	$s = "<h2>sales on account</h2>";
	return $s;
}

/**
 * callback for accounting/sales/account/new
 */
function sales_acct_new(){
	$s = module_invoke("sales","block","view",BLOCK_SALES_ACCT);
	return $s["content"];
}

/**
 * callback for acocunting/creditmemo/new
 */
function sales_credit_memo_new(){
	$s = module_invoke("sales","block","view",BLOCK_SALE_CM);
	return $s["content"];
}